<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>

  <body>
    <div id="app">
      <!-- 插值 -->
      <!-- <p>{{counter}}</p>
      <p>{{counter2}}</p> -->
      <!-- 指令 -->
      <p k-text="counter"></p>
      <!-- <p k-text="counter"></p> -->
      <!-- <p k-html="desc"></p> -->
    </div>

    <script type="module">
      import { mVue } from './mVue.js';
      const app = new mVue({
        el: '#app',
        data: {
          counter: 1,
          counter2: 9999,
          counter3: 1,
          desc: '<span style="color:red">vue练手</span>'
        }
      });
      setInterval(() => {
        app.counter++;
        // app.$data.counter++
      }, 1000);
      // setInterval(() => {
      //   app.counter2--;
      //   app.counter3 = app.counter * app.counter2;
      // }, 2000);
    </script>
  </body>
</html>
